package com.lyj.file.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2025-09-15
 * Time: 14:15
 */
@Data
@Component
//将配置文件中已file.oss为前缀的配置属性，绑定到该类对应的字段上
@ConfigurationProperties(prefix = "file.oss")
public class OSSProperties {
    private String endpoint;
    private String region;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String pathPrefix;
}